package com.example.jectpackdemo.ui.login;

import android.widget.Toast;

import com.example.jectpackdemo.LoginActivity;
import com.example.jectpackdemo.bean.UserInfo;

import androidx.lifecycle.ViewModel;

public class LoginViewModel extends ViewModel {
    // TODO: Implement the ViewModel
    public void login(UserInfo userInfo){
        if(userInfo.getUsername().get().equals("admin")&&userInfo.getPassword().get().equals("123456")){
            userInfo.getType().set("suceess");
        }
    }
}
